how to code minesweeper using javascript